import http from '../api/httpRequest.ts'

export function login(data: any) {
    return http({
        url: '/auth/doLogin',
        method: 'post',
        data: data
    })
}

export function logout() {
    return http({
        url: '/auth/logout',
        method: 'post'
    })
}